From 35688e79b9b505c39487d8d3cdf6da9c177a8e4e Mon Sep 17 00:00:00 2001 From: CyrilFerlicot Date: Wed, 17 Oct 2018 23:40:00 +0200 Subject: [PATCH 1/8] Deprecate MDLCalendarWidget in favor of MDLDatePicker that is the common name for this component in most web frameworks. Part of #123 --- .../MDLCalendarScreen.class/class/description.st | 2 +- .../MDLCalendarScreen.class/class/title.st | 2 +- .../MDLCalendarScreen.class/instance/calendar.st | 5 ----- .../instance/calendarCard.st | 5 ----- .../instance/datePicker.st | 5 +++++ .../instance/flatDatePicker.st | 5 +++++ ...CalendarCardOn..st => renderDatePickerOn..st} | 4 ++-- ...CalendarOn..st => renderFlatDatePickerOn..st} | 4 ++-- .../instance/renderScreenContentOn..st | 4 ++-- .../monticello.meta/categories.st | 1 - .../instance/setUp.st | 2 +- .../monticello.meta/categories.st | 1 - .../MDLCalendarCardWidget.class/README.md | 2 +- .../class/isDeprecated.st | 5 +++++ .../MDLCalendarCardWidget.class/properties.json | 4 ++-- .../MDLCalendarWidget.class/README.md | 2 +- .../class/isDeprecated.st | 5 +++++ .../MDLCalendarWidget.class/properties.json | 11 +++-------- .../MDLDatePicker.class/README.md | 1 + .../instance/containerClass.st | 0 .../instance/renderCalendarOn..st | 0 .../MDLDatePicker.class/properties.json | 11 +++++++++++ .../MDLFlatDatePicker.class/README.md | 1 + .../instance/calendar..st | 0 .../instance/calendar.st | 0 .../instance/callback..st | 0 .../instance/containerClass.st | 0 .../instance/currentDate..st | 0 .../instance/currentDate.st | 0 .../instance/daysList.st | 0 .../instance/displayDate.on..st | 0 .../instance/goToMonth..st | 0 .../instance/goToNextMonth.st | 0 .../instance/goToNextYears.st | 0 .../instance/goToPreviousMonth.st | 0 .../instance/goToPreviousYears.st | 0 .../instance/initialize.st | 0 .../instance/isInCurrentMonth..st | 0 .../instance/isTodayAndNotSelected..st | 0 .../instance/jsGoToMonth.on..st | 0 .../instance/jsOnCompleteScript.st | 0 .../instance/jsOnCompleteScriptOn..st | 0 .../instance/jsUpdateDate.on..st | 0 .../instance/onCompleteScript..st | 0 .../instance/onCompleteScript.st | 0 .../renderButtonNamed.renderingMethod.on..st | 0 .../instance/renderButtonWithIcon.action.on..st | 0 .../instance/renderCalendarBodyOn..st | 0 .../instance/renderCalendarContentOn..st | 0 .../instance/renderCalendarHeaderOn..st | 0 .../instance/renderCalendarOn..st | 0 .../instance/renderCalendarTitleOn..st | 0 .../instance/renderContentOn..st | 0 .../instance/renderCurrentMonthOn..st | 2 +- .../instance/renderDate.on..st | 0 .../instance/renderDaysOn..st | 0 .../instance/renderMonthesOn..st | 0 .../instance/renderWeeksOn..st | 0 .../instance/renderYearsHeaderOn..st | 0 ...nderYearsIntervalButtonWithIcon.action.on..st | 0 .../instance/renderYearsOn..st | 0 .../instance/selectedDateIs..st | 0 .../MDLFlatDatePicker.class/properties.json | 16 ++++++++++++++++ 63 files changed, 66 insertions(+), 34 deletions(-) delete mode 100644 src/Material-Design-Lite-Demo.package/MDLCalendarScreen.class/instance/calendar.st delete mode 100644 src/Material-Design-Lite-Demo.package/MDLCalendarScreen.class/instance/calendarCard.st create mode 100644 src/Material-Design-Lite-Demo.package/MDLCalendarScreen.class/instance/datePicker.st create mode 100644 src/Material-Design-Lite-Demo.package/MDLCalendarScreen.class/instance/flatDatePicker.st rename src/Material-Design-Lite-Demo.package/MDLCalendarScreen.class/instance/{renderCalendarCardOn..st => renderDatePickerOn..st} (87%) rename src/Material-Design-Lite-Demo.package/MDLCalendarScreen.class/instance/{renderCalendarOn..st => renderFlatDatePickerOn..st} (88%) create mode 100644 src/Material-Design-Lite-Widgets.package/MDLCalendarCardWidget.class/class/isDeprecated.st create mode 100644 src/Material-Design-Lite-Widgets.package/MDLCalendarWidget.class/class/isDeprecated.st create mode 100644 src/Material-Design-Lite-Widgets.package/MDLDatePicker.class/README.md rename src/Material-Design-Lite-Widgets.package/{MDLCalendarCardWidget.class => MDLDatePicker.class}/instance/containerClass.st (100%) rename src/Material-Design-Lite-Widgets.package/{MDLCalendarCardWidget.class => MDLDatePicker.class}/instance/renderCalendarOn..st (100%) create mode 100644 src/Material-Design-Lite-Widgets.package/MDLDatePicker.class/properties.json create mode 100644 src/Material-Design-Lite-Widgets.package/MDLFlatDatePicker.class/README.md rename src/Material-Design-Lite-Widgets.package/{MDLCalendarWidget.class => MDLFlatDatePicker.class}/instance/calendar..st (100%) rename src/Material-Design-Lite-Widgets.package/{MDLCalendarWidget.class => MDLFlatDatePicker.class}/instance/calendar.st (100%) rename src/Material-Design-Lite-Widgets.package/{MDLCalendarWidget.class => MDLFlatDatePicker.class}/instance/callback..st (100%) rename src/Material-Design-Lite-Widgets.package/{MDLCalendarWidget.class => MDLFlatDatePicker.class}/instance/containerClass.st (100%) rename src/Material-Design-Lite-Widgets.package/{MDLCalendarWidget.class => MDLFlatDatePicker.class}/instance/currentDate..st (100%) rename src/Material-Design-Lite-Widgets.package/{MDLCalendarWidget.class => MDLFlatDatePicker.class}/instance/currentDate.st (100%) rename src/Material-Design-Lite-Widgets.package/{MDLCalendarWidget.class => MDLFlatDatePicker.class}/instance/daysList.st (100%) rename src/Material-Design-Lite-Widgets.package/{MDLCalendarWidget.class => MDLFlatDatePicker.class}/instance/displayDate.on..st (100%) rename src/Material-Design-Lite-Widgets.package/{MDLCalendarWidget.class => MDLFlatDatePicker.class}/instance/goToMonth..st (100%) rename src/Material-Design-Lite-Widgets.package/{MDLCalendarWidget.class => MDLFlatDatePicker.class}/instance/goToNextMonth.st (100%) rename src/Material-Design-Lite-Widgets.package/{MDLCalendarWidget.class => MDLFlatDatePicker.class}/instance/goToNextYears.st (100%) rename src/Material-Design-Lite-Widgets.package/{MDLCalendarWidget.class => MDLFlatDatePicker.class}/instance/goToPreviousMonth.st (100%) rename src/Material-Design-Lite-Widgets.package/{MDLCalendarWidget.class => MDLFlatDatePicker.class}/instance/goToPreviousYears.st (100%) rename src/Material-Design-Lite-Widgets.package/{MDLCalendarWidget.class => MDLFlatDatePicker.class}/instance/initialize.st (100%) rename src/Material-Design-Lite-Widgets.package/{MDLCalendarWidget.class => MDLFlatDatePicker.class}/instance/isInCurrentMonth..st (100%) rename src/Material-Design-Lite-Widgets.package/{MDLCalendarWidget.class => MDLFlatDatePicker.class}/instance/isTodayAndNotSelected..st (100%) rename src/Material-Design-Lite-Widgets.package/{MDLCalendarWidget.class => MDLFlatDatePicker.class}/instance/jsGoToMonth.on..st (100%) rename src/Material-Design-Lite-Widgets.package/{MDLCalendarWidget.class => MDLFlatDatePicker.class}/instance/jsOnCompleteScript.st (100%) rename src/Material-Design-Lite-Widgets.package/{MDLCalendarWidget.class => MDLFlatDatePicker.class}/instance/jsOnCompleteScriptOn..st (100%) rename src/Material-Design-Lite-Widgets.package/{MDLCalendarWidget.class => MDLFlatDatePicker.class}/instance/jsUpdateDate.on..st (100%) rename src/Material-Design-Lite-Widgets.package/{MDLCalendarWidget.class => MDLFlatDatePicker.class}/instance/onCompleteScript..st (100%) rename src/Material-Design-Lite-Widgets.package/{MDLCalendarWidget.class => MDLFlatDatePicker.class}/instance/onCompleteScript.st (100%) rename src/Material-Design-Lite-Widgets.package/{MDLCalendarWidget.class => MDLFlatDatePicker.class}/instance/renderButtonNamed.renderingMethod.on..st (100%) rename src/Material-Design-Lite-Widgets.package/{MDLCalendarWidget.class => MDLFlatDatePicker.class}/instance/renderButtonWithIcon.action.on..st (100%) rename src/Material-Design-Lite-Widgets.package/{MDLCalendarWidget.class => MDLFlatDatePicker.class}/instance/renderCalendarBodyOn..st (100%) rename src/Material-Design-Lite-Widgets.package/{MDLCalendarWidget.class => MDLFlatDatePicker.class}/instance/renderCalendarContentOn..st (100%) rename src/Material-Design-Lite-Widgets.package/{MDLCalendarWidget.class => MDLFlatDatePicker.class}/instance/renderCalendarHeaderOn..st (100%) rename src/Material-Design-Lite-Widgets.package/{MDLCalendarWidget.class => MDLFlatDatePicker.class}/instance/renderCalendarOn..st (100%) rename src/Material-Design-Lite-Widgets.package/{MDLCalendarWidget.class => MDLFlatDatePicker.class}/instance/renderCalendarTitleOn..st (100%) rename src/Material-Design-Lite-Widgets.package/{MDLCalendarWidget.class => MDLFlatDatePicker.class}/instance/renderContentOn..st (100%) rename src/Material-Design-Lite-Widgets.package/{MDLCalendarWidget.class => MDLFlatDatePicker.class}/instance/renderCurrentMonthOn..st (83%) rename src/Material-Design-Lite-Widgets.package/{MDLCalendarWidget.class => MDLFlatDatePicker.class}/instance/renderDate.on..st (100%) rename src/Material-Design-Lite-Widgets.package/{MDLCalendarWidget.class => MDLFlatDatePicker.class}/instance/renderDaysOn..st (100%) rename src/Material-Design-Lite-Widgets.package/{MDLCalendarWidget.class => MDLFlatDatePicker.class}/instance/renderMonthesOn..st (100%) rename src/Material-Design-Lite-Widgets.package/{MDLCalendarWidget.class => MDLFlatDatePicker.class}/instance/renderWeeksOn..st (100%) rename src/Material-Design-Lite-Widgets.package/{MDLCalendarWidget.class => MDLFlatDatePicker.class}/instance/renderYearsHeaderOn..st (100%) rename src/Material-Design-Lite-Widgets.package/{MDLCalendarWidget.class => MDLFlatDatePicker.class}/instance/renderYearsIntervalButtonWithIcon.action.on..st (100%) rename src/Material-Design-Lite-Widgets.package/{MDLCalendarWidget.class => MDLFlatDatePicker.class}/instance/renderYearsOn..st (100%) rename src/Material-Design-Lite-Widgets.package/{MDLCalendarWidget.class => MDLFlatDatePicker.class}/instance/selectedDateIs..st (100%) create mode 100644 src/Material-Design-Lite-Widgets.package/MDLFlatDatePicker.class/properties.json diff --git a/src/Material-Design-Lite-Demo.package/MDLCalendarScreen.class/class/description.st b/src/Material-Design-Lite-Demo.package/MDLCalendarScreen.class/class/description.st index 8d1fd9f0..53666441 100644 --- a/src/Material-Design-Lite-Demo.package/MDLCalendarScreen.class/class/description.st +++ b/src/Material-Design-Lite-Demo.package/MDLCalendarScreen.class/class/description.st @@ -1,3 +1,3 @@ accessing description - ^ 'A calendar in Material Design style' \ No newline at end of file + ^ 'A calendar in Material Design style to pick a date' \ No newline at end of file diff --git a/src/Material-Design-Lite-Demo.package/MDLCalendarScreen.class/class/title.st b/src/Material-Design-Lite-Demo.package/MDLCalendarScreen.class/class/title.st index 794fc281..2177945c 100644 --- a/src/Material-Design-Lite-Demo.package/MDLCalendarScreen.class/class/title.st +++ b/src/Material-Design-Lite-Demo.package/MDLCalendarScreen.class/class/title.st @@ -1,3 +1,3 @@ accessing title - ^ 'Calendar' \ No newline at end of file + ^ 'Date Picker' \ No newline at end of file diff --git a/src/Material-Design-Lite-Demo.package/MDLCalendarScreen.class/instance/calendar.st b/src/Material-Design-Lite-Demo.package/MDLCalendarScreen.class/instance/calendar.st deleted file mode 100644 index 081cddd9..00000000 --- a/src/Material-Design-Lite-Demo.package/MDLCalendarScreen.class/instance/calendar.st +++ /dev/null @@ -1,5 +0,0 @@ -sections -calendar - ^ OrderedDictionary new - add: 'Calendar' -> #renderCalendarOn:; - yourself \ No newline at end of file diff --git a/src/Material-Design-Lite-Demo.package/MDLCalendarScreen.class/instance/calendarCard.st b/src/Material-Design-Lite-Demo.package/MDLCalendarScreen.class/instance/calendarCard.st deleted file mode 100644 index ddb59851..00000000 --- a/src/Material-Design-Lite-Demo.package/MDLCalendarScreen.class/instance/calendarCard.st +++ /dev/null @@ -1,5 +0,0 @@ -sections -calendarCard - ^ OrderedDictionary new - add: 'Calendar card' -> #renderCalendarCardOn:; - yourself \ No newline at end of file diff --git a/src/Material-Design-Lite-Demo.package/MDLCalendarScreen.class/instance/datePicker.st b/src/Material-Design-Lite-Demo.package/MDLCalendarScreen.class/instance/datePicker.st new file mode 100644 index 00000000..9357dc70 --- /dev/null +++ b/src/Material-Design-Lite-Demo.package/MDLCalendarScreen.class/instance/datePicker.st @@ -0,0 +1,5 @@ +sections +datePicker + ^ OrderedDictionary new + add: 'Date picker' -> #renderDatePickerOn:; + yourself \ No newline at end of file diff --git a/src/Material-Design-Lite-Demo.package/MDLCalendarScreen.class/instance/flatDatePicker.st b/src/Material-Design-Lite-Demo.package/MDLCalendarScreen.class/instance/flatDatePicker.st new file mode 100644 index 00000000..51142a18 --- /dev/null +++ b/src/Material-Design-Lite-Demo.package/MDLCalendarScreen.class/instance/flatDatePicker.st @@ -0,0 +1,5 @@ +sections +flatDatePicker + ^ OrderedDictionary new + add: 'Flat date picker' -> #renderFlatDatePickerOn:; + yourself \ No newline at end of file diff --git a/src/Material-Design-Lite-Demo.package/MDLCalendarScreen.class/instance/renderCalendarCardOn..st b/src/Material-Design-Lite-Demo.package/MDLCalendarScreen.class/instance/renderDatePickerOn..st similarity index 87% rename from src/Material-Design-Lite-Demo.package/MDLCalendarScreen.class/instance/renderCalendarCardOn..st rename to src/Material-Design-Lite-Demo.package/MDLCalendarScreen.class/instance/renderDatePickerOn..st index fd5685db..eee04c52 100644 --- a/src/Material-Design-Lite-Demo.package/MDLCalendarScreen.class/instance/renderCalendarCardOn..st +++ b/src/Material-Design-Lite-Demo.package/MDLCalendarScreen.class/instance/renderDatePickerOn..st @@ -1,8 +1,8 @@ demos -renderCalendarCardOn: html +renderDatePickerOn: html html render: - (MDLCalendarCardWidget new + (MDLDatePicker new callback: [ :day | selectedDay := day ]; currentDate: selectedDay; onCompleteScript: ((html jQuery id: 'selectedDay2') load html: [ :r | diff --git a/src/Material-Design-Lite-Demo.package/MDLCalendarScreen.class/instance/renderCalendarOn..st b/src/Material-Design-Lite-Demo.package/MDLCalendarScreen.class/instance/renderFlatDatePickerOn..st similarity index 88% rename from src/Material-Design-Lite-Demo.package/MDLCalendarScreen.class/instance/renderCalendarOn..st rename to src/Material-Design-Lite-Demo.package/MDLCalendarScreen.class/instance/renderFlatDatePickerOn..st index e507f13f..0b5749f4 100644 --- a/src/Material-Design-Lite-Demo.package/MDLCalendarScreen.class/instance/renderCalendarOn..st +++ b/src/Material-Design-Lite-Demo.package/MDLCalendarScreen.class/instance/renderFlatDatePickerOn..st @@ -1,9 +1,9 @@ demos -renderCalendarOn: html +renderFlatDatePickerOn: html html div style: 'background-color: white;border: 1px grey solid;'; with: - (MDLCalendarWidget new + (MDLFlatDatePicker new callback: [ :day | selectedDay := day ]; currentDate: selectedDay; onCompleteScript: ((html jQuery id: 'selectedDay') load html: [ :r | diff --git a/src/Material-Design-Lite-Demo.package/MDLCalendarScreen.class/instance/renderScreenContentOn..st b/src/Material-Design-Lite-Demo.package/MDLCalendarScreen.class/instance/renderScreenContentOn..st index bf90c200..73ce72dd 100644 --- a/src/Material-Design-Lite-Demo.package/MDLCalendarScreen.class/instance/renderScreenContentOn..st +++ b/src/Material-Design-Lite-Demo.package/MDLCalendarScreen.class/instance/renderScreenContentOn..st @@ -1,5 +1,5 @@ rendering renderScreenContentOn: html self - render: self calendar on: html; - render: self calendarCard on: html \ No newline at end of file + render: self datePicker on: html; + render: self flatDatePicker on: html \ No newline at end of file diff --git a/src/Material-Design-Lite-Demo.package/monticello.meta/categories.st b/src/Material-Design-Lite-Demo.package/monticello.meta/categories.st index ba790f94..ce41da16 100644 --- a/src/Material-Design-Lite-Demo.package/monticello.meta/categories.st +++ b/src/Material-Design-Lite-Demo.package/monticello.meta/categories.st @@ -5,4 +5,3 @@ SystemOrganization addCategory: 'Material-Design-Lite-Demo-Extensions'! SystemOrganization addCategory: 'Material-Design-Lite-Demo-Utils'! SystemOrganization addCategory: #'Material-Design-Lite-Demo-Widgets'! SystemOrganization addCategory: 'Material-Design-Lite-Demo-Widgets'! -ets'! diff --git a/src/Material-Design-Lite-Widgets-Tests.package/MDLCalendarWidgetTest.class/instance/setUp.st b/src/Material-Design-Lite-Widgets-Tests.package/MDLCalendarWidgetTest.class/instance/setUp.st index ebec6286..b56d0125 100644 --- a/src/Material-Design-Lite-Widgets-Tests.package/MDLCalendarWidgetTest.class/instance/setUp.st +++ b/src/Material-Design-Lite-Widgets-Tests.package/MDLCalendarWidgetTest.class/instance/setUp.st @@ -1,4 +1,4 @@ running setUp super setUp. - calendar := MDLCalendarWidget new \ No newline at end of file + calendar := MDLDatePicker new \ No newline at end of file diff --git a/src/Material-Design-Lite-Widgets-Tests.package/monticello.meta/categories.st b/src/Material-Design-Lite-Widgets-Tests.package/monticello.meta/categories.st index a4723adb..8a69b0b2 100644 --- a/src/Material-Design-Lite-Widgets-Tests.package/monticello.meta/categories.st +++ b/src/Material-Design-Lite-Widgets-Tests.package/monticello.meta/categories.st @@ -9,4 +9,3 @@ SystemOrganization addCategory: #'Material-Design-Lite-Widgets-Tests-Menu'! SystemOrganization addCategory: #'Material-Design-Lite-Widgets-Tests-Poll'! SystemOrganization addCategory: #'Material-Design-Lite-Widgets-Tests-Tab'! SystemOrganization addCategory: #'Material-Design-Lite-Widgets-Tests-Table'! -ystemOrganization addCategory: #'Material-Design-Lite-Widgets-Tests-Table'! diff --git a/src/Material-Design-Lite-Widgets.package/MDLCalendarCardWidget.class/README.md b/src/Material-Design-Lite-Widgets.package/MDLCalendarCardWidget.class/README.md index e0f7d294..4091d71c 100644 --- a/src/Material-Design-Lite-Widgets.package/MDLCalendarCardWidget.class/README.md +++ b/src/Material-Design-Lite-Widgets.package/MDLCalendarCardWidget.class/README.md @@ -1 +1 @@ -Calendar widget in a card \ No newline at end of file +Please use MDLDatePicker instead. \ No newline at end of file diff --git a/src/Material-Design-Lite-Widgets.package/MDLCalendarCardWidget.class/class/isDeprecated.st b/src/Material-Design-Lite-Widgets.package/MDLCalendarCardWidget.class/class/isDeprecated.st new file mode 100644 index 00000000..38829059 --- /dev/null +++ b/src/Material-Design-Lite-Widgets.package/MDLCalendarCardWidget.class/class/isDeprecated.st @@ -0,0 +1,5 @@ +deprecation +isDeprecated + "Please use MDLDatePicker instead." + + ^ true \ No newline at end of file diff --git a/src/Material-Design-Lite-Widgets.package/MDLCalendarCardWidget.class/properties.json b/src/Material-Design-Lite-Widgets.package/MDLCalendarCardWidget.class/properties.json index e81ac1da..328a7838 100644 --- a/src/Material-Design-Lite-Widgets.package/MDLCalendarCardWidget.class/properties.json +++ b/src/Material-Design-Lite-Widgets.package/MDLCalendarCardWidget.class/properties.json @@ -1,6 +1,6 @@ { - "commentStamp" : "ThomasHeniart 6/14/2016 15:26", - "super" : "MDLCalendarWidget", + "commentStamp" : "CyrilFerlicot 10/17/2018 23:26", + "super" : "MDLDatePicker", "category" : "Material-Design-Lite-Widgets-Calendar", "classinstvars" : [ ], "pools" : [ ], diff --git a/src/Material-Design-Lite-Widgets.package/MDLCalendarWidget.class/README.md b/src/Material-Design-Lite-Widgets.package/MDLCalendarWidget.class/README.md index fbddad65..f9a7c1ce 100644 --- a/src/Material-Design-Lite-Widgets.package/MDLCalendarWidget.class/README.md +++ b/src/Material-Design-Lite-Widgets.package/MDLCalendarWidget.class/README.md @@ -1 +1 @@ -Widget to basically display a calendar with MDL style \ No newline at end of file +Please use MDLFlatDatePicker instead. \ No newline at end of file diff --git a/src/Material-Design-Lite-Widgets.package/MDLCalendarWidget.class/class/isDeprecated.st b/src/Material-Design-Lite-Widgets.package/MDLCalendarWidget.class/class/isDeprecated.st new file mode 100644 index 00000000..855790be --- /dev/null +++ b/src/Material-Design-Lite-Widgets.package/MDLCalendarWidget.class/class/isDeprecated.st @@ -0,0 +1,5 @@ +deprecation +isDeprecated + "Please use MDLFlatDatePicker instead." + + ^ true \ No newline at end of file diff --git a/src/Material-Design-Lite-Widgets.package/MDLCalendarWidget.class/properties.json b/src/Material-Design-Lite-Widgets.package/MDLCalendarWidget.class/properties.json index 0a109c05..87a18edd 100644 --- a/src/Material-Design-Lite-Widgets.package/MDLCalendarWidget.class/properties.json +++ b/src/Material-Design-Lite-Widgets.package/MDLCalendarWidget.class/properties.json @@ -1,16 +1,11 @@ { - "commentStamp" : "ThomasHeniart 6/8/2016 10:55", - "super" : "MDLHighLevelWidget", + "commentStamp" : "CyrilFerlicot 10/17/2018 23:25", + "super" : "MDLFlatDatePicker", "category" : "Material-Design-Lite-Widgets-Calendar", "classinstvars" : [ ], "pools" : [ ], "classvars" : [ ], - "instvars" : [ - "daysList", - "calendar", - "callback", - "onCompleteScript" - ], + "instvars" : [ ], "name" : "MDLCalendarWidget", "type" : "normal" } \ No newline at end of file diff --git a/src/Material-Design-Lite-Widgets.package/MDLDatePicker.class/README.md b/src/Material-Design-Lite-Widgets.package/MDLDatePicker.class/README.md new file mode 100644 index 00000000..54d3b75f --- /dev/null +++ b/src/Material-Design-Lite-Widgets.package/MDLDatePicker.class/README.md @@ -0,0 +1 @@ +I am a date picker embebded in a MDLCard for a better display. \ No newline at end of file diff --git a/src/Material-Design-Lite-Widgets.package/MDLCalendarCardWidget.class/instance/containerClass.st b/src/Material-Design-Lite-Widgets.package/MDLDatePicker.class/instance/containerClass.st similarity index 100% rename from src/Material-Design-Lite-Widgets.package/MDLCalendarCardWidget.class/instance/containerClass.st rename to src/Material-Design-Lite-Widgets.package/MDLDatePicker.class/instance/containerClass.st diff --git a/src/Material-Design-Lite-Widgets.package/MDLCalendarCardWidget.class/instance/renderCalendarOn..st b/src/Material-Design-Lite-Widgets.package/MDLDatePicker.class/instance/renderCalendarOn..st similarity index 100% rename from src/Material-Design-Lite-Widgets.package/MDLCalendarCardWidget.class/instance/renderCalendarOn..st rename to src/Material-Design-Lite-Widgets.package/MDLDatePicker.class/instance/renderCalendarOn..st diff --git a/src/Material-Design-Lite-Widgets.package/MDLDatePicker.class/properties.json b/src/Material-Design-Lite-Widgets.package/MDLDatePicker.class/properties.json new file mode 100644 index 00000000..d1ae076a --- /dev/null +++ b/src/Material-Design-Lite-Widgets.package/MDLDatePicker.class/properties.json @@ -0,0 +1,11 @@ +{ + "commentStamp" : "CyrilFerlicot 10/17/2018 23:24", + "super" : "MDLFlatDatePicker", + "category" : "Material-Design-Lite-Widgets-Calendar", + "classinstvars" : [ ], + "pools" : [ ], + "classvars" : [ ], + "instvars" : [ ], + "name" : "MDLDatePicker", + "type" : "normal" +} \ No newline at end of file diff --git a/src/Material-Design-Lite-Widgets.package/MDLFlatDatePicker.class/README.md b/src/Material-Design-Lite-Widgets.package/MDLFlatDatePicker.class/README.md new file mode 100644 index 00000000..02a7b2bc --- /dev/null +++ b/src/Material-Design-Lite-Widgets.package/MDLFlatDatePicker.class/README.md @@ -0,0 +1 @@ +I am a component displaying a calendar to let the user pick a date. \ No newline at end of file diff --git a/src/Material-Design-Lite-Widgets.package/MDLCalendarWidget.class/instance/calendar..st b/src/Material-Design-Lite-Widgets.package/MDLFlatDatePicker.class/instance/calendar..st similarity index 100% rename from src/Material-Design-Lite-Widgets.package/MDLCalendarWidget.class/instance/calendar..st rename to src/Material-Design-Lite-Widgets.package/MDLFlatDatePicker.class/instance/calendar..st diff --git a/src/Material-Design-Lite-Widgets.package/MDLCalendarWidget.class/instance/calendar.st b/src/Material-Design-Lite-Widgets.package/MDLFlatDatePicker.class/instance/calendar.st similarity index 100% rename from src/Material-Design-Lite-Widgets.package/MDLCalendarWidget.class/instance/calendar.st rename to src/Material-Design-Lite-Widgets.package/MDLFlatDatePicker.class/instance/calendar.st diff --git a/src/Material-Design-Lite-Widgets.package/MDLCalendarWidget.class/instance/callback..st b/src/Material-Design-Lite-Widgets.package/MDLFlatDatePicker.class/instance/callback..st similarity index 100% rename from src/Material-Design-Lite-Widgets.package/MDLCalendarWidget.class/instance/callback..st rename to src/Material-Design-Lite-Widgets.package/MDLFlatDatePicker.class/instance/callback..st diff --git a/src/Material-Design-Lite-Widgets.package/MDLCalendarWidget.class/instance/containerClass.st b/src/Material-Design-Lite-Widgets.package/MDLFlatDatePicker.class/instance/containerClass.st similarity index 100% rename from src/Material-Design-Lite-Widgets.package/MDLCalendarWidget.class/instance/containerClass.st rename to src/Material-Design-Lite-Widgets.package/MDLFlatDatePicker.class/instance/containerClass.st diff --git a/src/Material-Design-Lite-Widgets.package/MDLCalendarWidget.class/instance/currentDate..st b/src/Material-Design-Lite-Widgets.package/MDLFlatDatePicker.class/instance/currentDate..st similarity index 100% rename from src/Material-Design-Lite-Widgets.package/MDLCalendarWidget.class/instance/currentDate..st rename to src/Material-Design-Lite-Widgets.package/MDLFlatDatePicker.class/instance/currentDate..st diff --git a/src/Material-Design-Lite-Widgets.package/MDLCalendarWidget.class/instance/currentDate.st b/src/Material-Design-Lite-Widgets.package/MDLFlatDatePicker.class/instance/currentDate.st similarity index 100% rename from src/Material-Design-Lite-Widgets.package/MDLCalendarWidget.class/instance/currentDate.st rename to src/Material-Design-Lite-Widgets.package/MDLFlatDatePicker.class/instance/currentDate.st diff --git a/src/Material-Design-Lite-Widgets.package/MDLCalendarWidget.class/instance/daysList.st b/src/Material-Design-Lite-Widgets.package/MDLFlatDatePicker.class/instance/daysList.st similarity index 100% rename from src/Material-Design-Lite-Widgets.package/MDLCalendarWidget.class/instance/daysList.st rename to src/Material-Design-Lite-Widgets.package/MDLFlatDatePicker.class/instance/daysList.st diff --git a/src/Material-Design-Lite-Widgets.package/MDLCalendarWidget.class/instance/displayDate.on..st b/src/Material-Design-Lite-Widgets.package/MDLFlatDatePicker.class/instance/displayDate.on..st similarity index 100% rename from src/Material-Design-Lite-Widgets.package/MDLCalendarWidget.class/instance/displayDate.on..st rename to src/Material-Design-Lite-Widgets.package/MDLFlatDatePicker.class/instance/displayDate.on..st diff --git a/src/Material-Design-Lite-Widgets.package/MDLCalendarWidget.class/instance/goToMonth..st b/src/Material-Design-Lite-Widgets.package/MDLFlatDatePicker.class/instance/goToMonth..st similarity index 100% rename from src/Material-Design-Lite-Widgets.package/MDLCalendarWidget.class/instance/goToMonth..st rename to src/Material-Design-Lite-Widgets.package/MDLFlatDatePicker.class/instance/goToMonth..st diff --git a/src/Material-Design-Lite-Widgets.package/MDLCalendarWidget.class/instance/goToNextMonth.st b/src/Material-Design-Lite-Widgets.package/MDLFlatDatePicker.class/instance/goToNextMonth.st similarity index 100% rename from src/Material-Design-Lite-Widgets.package/MDLCalendarWidget.class/instance/goToNextMonth.st rename to src/Material-Design-Lite-Widgets.package/MDLFlatDatePicker.class/instance/goToNextMonth.st diff --git a/src/Material-Design-Lite-Widgets.package/MDLCalendarWidget.class/instance/goToNextYears.st b/src/Material-Design-Lite-Widgets.package/MDLFlatDatePicker.class/instance/goToNextYears.st similarity index 100% rename from src/Material-Design-Lite-Widgets.package/MDLCalendarWidget.class/instance/goToNextYears.st rename to src/Material-Design-Lite-Widgets.package/MDLFlatDatePicker.class/instance/goToNextYears.st diff --git a/src/Material-Design-Lite-Widgets.package/MDLCalendarWidget.class/instance/goToPreviousMonth.st b/src/Material-Design-Lite-Widgets.package/MDLFlatDatePicker.class/instance/goToPreviousMonth.st similarity index 100% rename from src/Material-Design-Lite-Widgets.package/MDLCalendarWidget.class/instance/goToPreviousMonth.st rename to src/Material-Design-Lite-Widgets.package/MDLFlatDatePicker.class/instance/goToPreviousMonth.st diff --git a/src/Material-Design-Lite-Widgets.package/MDLCalendarWidget.class/instance/goToPreviousYears.st b/src/Material-Design-Lite-Widgets.package/MDLFlatDatePicker.class/instance/goToPreviousYears.st similarity index 100% rename from src/Material-Design-Lite-Widgets.package/MDLCalendarWidget.class/instance/goToPreviousYears.st rename to src/Material-Design-Lite-Widgets.package/MDLFlatDatePicker.class/instance/goToPreviousYears.st diff --git a/src/Material-Design-Lite-Widgets.package/MDLCalendarWidget.class/instance/initialize.st b/src/Material-Design-Lite-Widgets.package/MDLFlatDatePicker.class/instance/initialize.st similarity index 100% rename from src/Material-Design-Lite-Widgets.package/MDLCalendarWidget.class/instance/initialize.st rename to src/Material-Design-Lite-Widgets.package/MDLFlatDatePicker.class/instance/initialize.st diff --git a/src/Material-Design-Lite-Widgets.package/MDLCalendarWidget.class/instance/isInCurrentMonth..st b/src/Material-Design-Lite-Widgets.package/MDLFlatDatePicker.class/instance/isInCurrentMonth..st similarity index 100% rename from src/Material-Design-Lite-Widgets.package/MDLCalendarWidget.class/instance/isInCurrentMonth..st rename to src/Material-Design-Lite-Widgets.package/MDLFlatDatePicker.class/instance/isInCurrentMonth..st diff --git a/src/Material-Design-Lite-Widgets.package/MDLCalendarWidget.class/instance/isTodayAndNotSelected..st b/src/Material-Design-Lite-Widgets.package/MDLFlatDatePicker.class/instance/isTodayAndNotSelected..st similarity index 100% rename from src/Material-Design-Lite-Widgets.package/MDLCalendarWidget.class/instance/isTodayAndNotSelected..st rename to src/Material-Design-Lite-Widgets.package/MDLFlatDatePicker.class/instance/isTodayAndNotSelected..st diff --git a/src/Material-Design-Lite-Widgets.package/MDLCalendarWidget.class/instance/jsGoToMonth.on..st b/src/Material-Design-Lite-Widgets.package/MDLFlatDatePicker.class/instance/jsGoToMonth.on..st similarity index 100% rename from src/Material-Design-Lite-Widgets.package/MDLCalendarWidget.class/instance/jsGoToMonth.on..st rename to src/Material-Design-Lite-Widgets.package/MDLFlatDatePicker.class/instance/jsGoToMonth.on..st diff --git a/src/Material-Design-Lite-Widgets.package/MDLCalendarWidget.class/instance/jsOnCompleteScript.st b/src/Material-Design-Lite-Widgets.package/MDLFlatDatePicker.class/instance/jsOnCompleteScript.st similarity index 100% rename from src/Material-Design-Lite-Widgets.package/MDLCalendarWidget.class/instance/jsOnCompleteScript.st rename to src/Material-Design-Lite-Widgets.package/MDLFlatDatePicker.class/instance/jsOnCompleteScript.st diff --git a/src/Material-Design-Lite-Widgets.package/MDLCalendarWidget.class/instance/jsOnCompleteScriptOn..st b/src/Material-Design-Lite-Widgets.package/MDLFlatDatePicker.class/instance/jsOnCompleteScriptOn..st similarity index 100% rename from src/Material-Design-Lite-Widgets.package/MDLCalendarWidget.class/instance/jsOnCompleteScriptOn..st rename to src/Material-Design-Lite-Widgets.package/MDLFlatDatePicker.class/instance/jsOnCompleteScriptOn..st diff --git a/src/Material-Design-Lite-Widgets.package/MDLCalendarWidget.class/instance/jsUpdateDate.on..st b/src/Material-Design-Lite-Widgets.package/MDLFlatDatePicker.class/instance/jsUpdateDate.on..st similarity index 100% rename from src/Material-Design-Lite-Widgets.package/MDLCalendarWidget.class/instance/jsUpdateDate.on..st rename to src/Material-Design-Lite-Widgets.package/MDLFlatDatePicker.class/instance/jsUpdateDate.on..st diff --git a/src/Material-Design-Lite-Widgets.package/MDLCalendarWidget.class/instance/onCompleteScript..st b/src/Material-Design-Lite-Widgets.package/MDLFlatDatePicker.class/instance/onCompleteScript..st similarity index 100% rename from src/Material-Design-Lite-Widgets.package/MDLCalendarWidget.class/instance/onCompleteScript..st rename to src/Material-Design-Lite-Widgets.package/MDLFlatDatePicker.class/instance/onCompleteScript..st diff --git a/src/Material-Design-Lite-Widgets.package/MDLCalendarWidget.class/instance/onCompleteScript.st b/src/Material-Design-Lite-Widgets.package/MDLFlatDatePicker.class/instance/onCompleteScript.st similarity index 100% rename from src/Material-Design-Lite-Widgets.package/MDLCalendarWidget.class/instance/onCompleteScript.st rename to src/Material-Design-Lite-Widgets.package/MDLFlatDatePicker.class/instance/onCompleteScript.st diff --git a/src/Material-Design-Lite-Widgets.package/MDLCalendarWidget.class/instance/renderButtonNamed.renderingMethod.on..st b/src/Material-Design-Lite-Widgets.package/MDLFlatDatePicker.class/instance/renderButtonNamed.renderingMethod.on..st similarity index 100% rename from src/Material-Design-Lite-Widgets.package/MDLCalendarWidget.class/instance/renderButtonNamed.renderingMethod.on..st rename to src/Material-Design-Lite-Widgets.package/MDLFlatDatePicker.class/instance/renderButtonNamed.renderingMethod.on..st diff --git a/src/Material-Design-Lite-Widgets.package/MDLCalendarWidget.class/instance/renderButtonWithIcon.action.on..st b/src/Material-Design-Lite-Widgets.package/MDLFlatDatePicker.class/instance/renderButtonWithIcon.action.on..st similarity index 100% rename from src/Material-Design-Lite-Widgets.package/MDLCalendarWidget.class/instance/renderButtonWithIcon.action.on..st rename to src/Material-Design-Lite-Widgets.package/MDLFlatDatePicker.class/instance/renderButtonWithIcon.action.on..st diff --git a/src/Material-Design-Lite-Widgets.package/MDLCalendarWidget.class/instance/renderCalendarBodyOn..st b/src/Material-Design-Lite-Widgets.package/MDLFlatDatePicker.class/instance/renderCalendarBodyOn..st similarity index 100% rename from src/Material-Design-Lite-Widgets.package/MDLCalendarWidget.class/instance/renderCalendarBodyOn..st rename to src/Material-Design-Lite-Widgets.package/MDLFlatDatePicker.class/instance/renderCalendarBodyOn..st diff --git a/src/Material-Design-Lite-Widgets.package/MDLCalendarWidget.class/instance/renderCalendarContentOn..st b/src/Material-Design-Lite-Widgets.package/MDLFlatDatePicker.class/instance/renderCalendarContentOn..st similarity index 100% rename from src/Material-Design-Lite-Widgets.package/MDLCalendarWidget.class/instance/renderCalendarContentOn..st rename to src/Material-Design-Lite-Widgets.package/MDLFlatDatePicker.class/instance/renderCalendarContentOn..st diff --git a/src/Material-Design-Lite-Widgets.package/MDLCalendarWidget.class/instance/renderCalendarHeaderOn..st b/src/Material-Design-Lite-Widgets.package/MDLFlatDatePicker.class/instance/renderCalendarHeaderOn..st similarity index 100% rename from src/Material-Design-Lite-Widgets.package/MDLCalendarWidget.class/instance/renderCalendarHeaderOn..st rename to src/Material-Design-Lite-Widgets.package/MDLFlatDatePicker.class/instance/renderCalendarHeaderOn..st diff --git a/src/Material-Design-Lite-Widgets.package/MDLCalendarWidget.class/instance/renderCalendarOn..st b/src/Material-Design-Lite-Widgets.package/MDLFlatDatePicker.class/instance/renderCalendarOn..st similarity index 100% rename from src/Material-Design-Lite-Widgets.package/MDLCalendarWidget.class/instance/renderCalendarOn..st rename to src/Material-Design-Lite-Widgets.package/MDLFlatDatePicker.class/instance/renderCalendarOn..st diff --git a/src/Material-Design-Lite-Widgets.package/MDLCalendarWidget.class/instance/renderCalendarTitleOn..st b/src/Material-Design-Lite-Widgets.package/MDLFlatDatePicker.class/instance/renderCalendarTitleOn..st similarity index 100% rename from src/Material-Design-Lite-Widgets.package/MDLCalendarWidget.class/instance/renderCalendarTitleOn..st rename to src/Material-Design-Lite-Widgets.package/MDLFlatDatePicker.class/instance/renderCalendarTitleOn..st diff --git a/src/Material-Design-Lite-Widgets.package/MDLCalendarWidget.class/instance/renderContentOn..st b/src/Material-Design-Lite-Widgets.package/MDLFlatDatePicker.class/instance/renderContentOn..st similarity index 100% rename from src/Material-Design-Lite-Widgets.package/MDLCalendarWidget.class/instance/renderContentOn..st rename to src/Material-Design-Lite-Widgets.package/MDLFlatDatePicker.class/instance/renderContentOn..st diff --git a/src/Material-Design-Lite-Widgets.package/MDLCalendarWidget.class/instance/renderCurrentMonthOn..st b/src/Material-Design-Lite-Widgets.package/MDLFlatDatePicker.class/instance/renderCurrentMonthOn..st similarity index 83% rename from src/Material-Design-Lite-Widgets.package/MDLCalendarWidget.class/instance/renderCurrentMonthOn..st rename to src/Material-Design-Lite-Widgets.package/MDLFlatDatePicker.class/instance/renderCurrentMonthOn..st index 315054df..a3967720 100644 --- a/src/Material-Design-Lite-Widgets.package/MDLCalendarWidget.class/instance/renderCurrentMonthOn..st +++ b/src/Material-Design-Lite-Widgets.package/MDLFlatDatePicker.class/instance/renderCurrentMonthOn..st @@ -5,7 +5,7 @@ renderCurrentMonthOn: html tablet: 6 phone: 2 with: [ self - renderButtonNamed: self currentDate monthName + renderButtonNamed: self currentDate monthAbbreviation renderingMethod: #renderMonthesOn: on: html. html space. diff --git a/src/Material-Design-Lite-Widgets.package/MDLCalendarWidget.class/instance/renderDate.on..st b/src/Material-Design-Lite-Widgets.package/MDLFlatDatePicker.class/instance/renderDate.on..st similarity index 100% rename from src/Material-Design-Lite-Widgets.package/MDLCalendarWidget.class/instance/renderDate.on..st rename to src/Material-Design-Lite-Widgets.package/MDLFlatDatePicker.class/instance/renderDate.on..st diff --git a/src/Material-Design-Lite-Widgets.package/MDLCalendarWidget.class/instance/renderDaysOn..st b/src/Material-Design-Lite-Widgets.package/MDLFlatDatePicker.class/instance/renderDaysOn..st similarity index 100% rename from src/Material-Design-Lite-Widgets.package/MDLCalendarWidget.class/instance/renderDaysOn..st rename to src/Material-Design-Lite-Widgets.package/MDLFlatDatePicker.class/instance/renderDaysOn..st diff --git a/src/Material-Design-Lite-Widgets.package/MDLCalendarWidget.class/instance/renderMonthesOn..st b/src/Material-Design-Lite-Widgets.package/MDLFlatDatePicker.class/instance/renderMonthesOn..st similarity index 100% rename from src/Material-Design-Lite-Widgets.package/MDLCalendarWidget.class/instance/renderMonthesOn..st rename to src/Material-Design-Lite-Widgets.package/MDLFlatDatePicker.class/instance/renderMonthesOn..st diff --git a/src/Material-Design-Lite-Widgets.package/MDLCalendarWidget.class/instance/renderWeeksOn..st b/src/Material-Design-Lite-Widgets.package/MDLFlatDatePicker.class/instance/renderWeeksOn..st similarity index 100% rename from src/Material-Design-Lite-Widgets.package/MDLCalendarWidget.class/instance/renderWeeksOn..st rename to src/Material-Design-Lite-Widgets.package/MDLFlatDatePicker.class/instance/renderWeeksOn..st diff --git a/src/Material-Design-Lite-Widgets.package/MDLCalendarWidget.class/instance/renderYearsHeaderOn..st b/src/Material-Design-Lite-Widgets.package/MDLFlatDatePicker.class/instance/renderYearsHeaderOn..st similarity index 100% rename from src/Material-Design-Lite-Widgets.package/MDLCalendarWidget.class/instance/renderYearsHeaderOn..st rename to src/Material-Design-Lite-Widgets.package/MDLFlatDatePicker.class/instance/renderYearsHeaderOn..st diff --git a/src/Material-Design-Lite-Widgets.package/MDLCalendarWidget.class/instance/renderYearsIntervalButtonWithIcon.action.on..st b/src/Material-Design-Lite-Widgets.package/MDLFlatDatePicker.class/instance/renderYearsIntervalButtonWithIcon.action.on..st similarity index 100% rename from src/Material-Design-Lite-Widgets.package/MDLCalendarWidget.class/instance/renderYearsIntervalButtonWithIcon.action.on..st rename to src/Material-Design-Lite-Widgets.package/MDLFlatDatePicker.class/instance/renderYearsIntervalButtonWithIcon.action.on..st diff --git a/src/Material-Design-Lite-Widgets.package/MDLCalendarWidget.class/instance/renderYearsOn..st b/src/Material-Design-Lite-Widgets.package/MDLFlatDatePicker.class/instance/renderYearsOn..st similarity index 100% rename from src/Material-Design-Lite-Widgets.package/MDLCalendarWidget.class/instance/renderYearsOn..st rename to src/Material-Design-Lite-Widgets.package/MDLFlatDatePicker.class/instance/renderYearsOn..st diff --git a/src/Material-Design-Lite-Widgets.package/MDLCalendarWidget.class/instance/selectedDateIs..st b/src/Material-Design-Lite-Widgets.package/MDLFlatDatePicker.class/instance/selectedDateIs..st similarity index 100% rename from src/Material-Design-Lite-Widgets.package/MDLCalendarWidget.class/instance/selectedDateIs..st rename to src/Material-Design-Lite-Widgets.package/MDLFlatDatePicker.class/instance/selectedDateIs..st diff --git a/src/Material-Design-Lite-Widgets.package/MDLFlatDatePicker.class/properties.json b/src/Material-Design-Lite-Widgets.package/MDLFlatDatePicker.class/properties.json new file mode 100644 index 00000000..1f0736be --- /dev/null +++ b/src/Material-Design-Lite-Widgets.package/MDLFlatDatePicker.class/properties.json @@ -0,0 +1,16 @@ +{ + "commentStamp" : "CyrilFerlicot 10/17/2018 23:23", + "super" : "MDLHighLevelWidget", + "category" : "Material-Design-Lite-Widgets-Calendar", + "classinstvars" : [ ], + "pools" : [ ], + "classvars" : [ ], + "instvars" : [ + "daysList", + "calendar", + "callback", + "onCompleteScript" + ], + "name" : "MDLFlatDatePicker", + "type" : "normal" +} \ No newline at end of file From 0e7da6d45ce2bb9051c3f2a8d6bb97f5197b021f Mon Sep 17 00:00:00 2001 From: CyrilFerlicot Date: Wed, 17 Oct 2018 23:40:31 +0200 Subject: [PATCH 2/8] Deprecate MDLPaginationWidget Part of #89 --- .../MDLPaginationWidget.class/class/isDeprecated.st | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 src/Material-Design-Lite-Widgets.package/MDLPaginationWidget.class/class/isDeprecated.st diff --git a/src/Material-Design-Lite-Widgets.package/MDLPaginationWidget.class/class/isDeprecated.st b/src/Material-Design-Lite-Widgets.package/MDLPaginationWidget.class/class/isDeprecated.st new file mode 100644 index 00000000..ee3f41f5 --- /dev/null +++ b/src/Material-Design-Lite-Widgets.package/MDLPaginationWidget.class/class/isDeprecated.st @@ -0,0 +1,5 @@ +deprecation +isDeprecated + "Currently we have a duplication of widgets with the MDLPaginationWidget and the sortable table. This component will be removed in the next major release." + + ^ true \ No newline at end of file From a7e77656a29baa17508a98be8954fd7be88e3a0c Mon Sep 17 00:00:00 2001 From: CyrilFerlicot Date: Wed, 17 Oct 2018 23:48:30 +0200 Subject: [PATCH 3/8] Transform mdlCardTitle into mdlCardTitleContainer to be more consistent. Part of #143 --- .../instance/testBareBrush.st | 4 +++- .../instance/testBorder.st | 4 +++- .../instance/testExpand.st | 4 +++- .../instance/testWithContent.st | 5 ++++- .../instance/testBareBrush.st | 10 ++++++++-- .../instance/testWithContent.st | 10 ++++++++-- .../WAHtmlCanvas.extension/instance/mdlCardTitle..st | 5 ++--- .../WAHtmlCanvas.extension/instance/mdlCardTitle.st | 3 ++- .../instance/mdlCardTitleContainer..st | 5 +++++ .../instance/mdlCardTitleContainer.st | 3 +++ .../MDLCardsScreen.class/instance/renderDateCardOn..st | 2 +- .../instance/renderImageCardOn..st | 2 +- .../instance/renderSquareCardOn..st | 2 +- .../MDLCardsScreen.class/instance/renderWideCardOn..st | 2 +- .../monticello.meta/categories.st | 2 +- .../MDLCardTitle.class/instance/renderContentOn..st | 2 +- .../instance/renderTableContentOn..st | 2 +- 17 files changed, 48 insertions(+), 19 deletions(-) create mode 100644 src/Material-Design-Lite-Components.package/WAHtmlCanvas.extension/instance/mdlCardTitleContainer..st create mode 100644 src/Material-Design-Lite-Components.package/WAHtmlCanvas.extension/instance/mdlCardTitleContainer.st diff --git a/src/Material-Design-Lite-Components-Tests.package/MDLCardTitleContainerTest.class/instance/testBareBrush.st b/src/Material-Design-Lite-Components-Tests.package/MDLCardTitleContainerTest.class/instance/testBareBrush.st index c1a0487a..4a09ffd1 100644 --- a/src/Material-Design-Lite-Components-Tests.package/MDLCardTitleContainerTest.class/instance/testBareBrush.st +++ b/src/Material-Design-Lite-Components-Tests.package/MDLCardTitleContainerTest.class/instance/testBareBrush.st @@ -1,3 +1,5 @@ tests testBareBrush - self assert: [ :html | html mdlCardTitle ] generates: '
' \ No newline at end of file + self + assert: [ :html | html mdlCardTitleContainer ] + generates: '
' \ No newline at end of file diff --git a/src/Material-Design-Lite-Components-Tests.package/MDLCardTitleContainerTest.class/instance/testBorder.st b/src/Material-Design-Lite-Components-Tests.package/MDLCardTitleContainerTest.class/instance/testBorder.st index d50bec50..6ce772ee 100644 --- a/src/Material-Design-Lite-Components-Tests.package/MDLCardTitleContainerTest.class/instance/testBorder.st +++ b/src/Material-Design-Lite-Components-Tests.package/MDLCardTitleContainerTest.class/instance/testBorder.st @@ -1,3 +1,5 @@ tests testBorder - self assert: [ :html | html mdlCardTitle border ] generates: '
' \ No newline at end of file + self + assert: [ :html | html mdlCardTitleContainer border ] + generates: '
' \ No newline at end of file diff --git a/src/Material-Design-Lite-Components-Tests.package/MDLCardTitleContainerTest.class/instance/testExpand.st b/src/Material-Design-Lite-Components-Tests.package/MDLCardTitleContainerTest.class/instance/testExpand.st index 7b3a8028..92b09eb4 100644 --- a/src/Material-Design-Lite-Components-Tests.package/MDLCardTitleContainerTest.class/instance/testExpand.st +++ b/src/Material-Design-Lite-Components-Tests.package/MDLCardTitleContainerTest.class/instance/testExpand.st @@ -1,3 +1,5 @@ tests testExpand - self assert: [ :html | html mdlCardTitle expand ] generates: '
' \ No newline at end of file + self + assert: [ :html | html mdlCardTitleContainer expand ] + generates: '
' \ No newline at end of file diff --git a/src/Material-Design-Lite-Components-Tests.package/MDLCardTitleContainerTest.class/instance/testWithContent.st b/src/Material-Design-Lite-Components-Tests.package/MDLCardTitleContainerTest.class/instance/testWithContent.st index 35f07db0..7eabe865 100644 --- a/src/Material-Design-Lite-Components-Tests.package/MDLCardTitleContainerTest.class/instance/testWithContent.st +++ b/src/Material-Design-Lite-Components-Tests.package/MDLCardTitleContainerTest.class/instance/testWithContent.st @@ -1,3 +1,6 @@ tests testWithContent - self assert: [ :html | html mdlCardTitle: [ html mdlCardTitleText: 'test' ] ] generates: '

test

' \ No newline at end of file + self + assert: [ :html | html mdlCardTitleContainer: [ html mdlCardTitleText: 'test' ] ] + generates: + '

test

' \ No newline at end of file diff --git a/src/Material-Design-Lite-Components-Tests.package/MDLMultilineTextFieldTest.class/instance/testBareBrush.st b/src/Material-Design-Lite-Components-Tests.package/MDLMultilineTextFieldTest.class/instance/testBareBrush.st index 085c6e9a..1979b1f9 100644 --- a/src/Material-Design-Lite-Components-Tests.package/MDLMultilineTextFieldTest.class/instance/testBareBrush.st +++ b/src/Material-Design-Lite-Components-Tests.package/MDLMultilineTextFieldTest.class/instance/testBareBrush.st @@ -1,4 +1,10 @@ tests testBareBrush - self assert: [ :html | html mdlMultilineTextField ] generates: ''. - self assert: [ :html | html brush: MDLMultilineTextField new ] generates: '' \ No newline at end of file + self + assert: [ :html | html mdlTextArea ] + generates: + ''. + self + assert: [ :html | html brush: MDLMultilineTextField new ] + generates: + '' \ No newline at end of file diff --git a/src/Material-Design-Lite-Components-Tests.package/MDLMultilineTextFieldTest.class/instance/testWithContent.st b/src/Material-Design-Lite-Components-Tests.package/MDLMultilineTextFieldTest.class/instance/testWithContent.st index cd35b46f..43187d44 100644 --- a/src/Material-Design-Lite-Components-Tests.package/MDLMultilineTextFieldTest.class/instance/testWithContent.st +++ b/src/Material-Design-Lite-Components-Tests.package/MDLMultilineTextFieldTest.class/instance/testWithContent.st @@ -1,4 +1,10 @@ tests testWithContent - self assert: [ :html | html mdlMultilineTextField: 'Test' ] generates: ''. - self assert: [ :html | (html brush: MDLMultilineTextField new) with: 'Test' ] generates: '' \ No newline at end of file + self + assert: [ :html | html mdlTextArea: 'Test' ] + generates: + ''. + self + assert: [ :html | (html brush: MDLMultilineTextField new) with: 'Test' ] + generates: + '' \ No newline at end of file diff --git a/src/Material-Design-Lite-Components.package/WAHtmlCanvas.extension/instance/mdlCardTitle..st b/src/Material-Design-Lite-Components.package/WAHtmlCanvas.extension/instance/mdlCardTitle..st index 3c286d69..5cbd36c4 100644 --- a/src/Material-Design-Lite-Components.package/WAHtmlCanvas.extension/instance/mdlCardTitle..st +++ b/src/Material-Design-Lite-Components.package/WAHtmlCanvas.extension/instance/mdlCardTitle..st @@ -1,5 +1,4 @@ *Material-Design-Lite-Components mdlCardTitle: aBlock - ^ self mdlCardTitle - with: aBlock; - yourself \ No newline at end of file + self deprecated: 'Use #mdlCardTitleContainer: instead.' transformWith: '`@receiver mdlCardTitle: `@statements' -> '`@receiver mdlCardTitleContainer: `@statements'. + ^ self mdlCardTitleContainer: aBlock \ No newline at end of file diff --git a/src/Material-Design-Lite-Components.package/WAHtmlCanvas.extension/instance/mdlCardTitle.st b/src/Material-Design-Lite-Components.package/WAHtmlCanvas.extension/instance/mdlCardTitle.st index 3155e736..08dab3eb 100644 --- a/src/Material-Design-Lite-Components.package/WAHtmlCanvas.extension/instance/mdlCardTitle.st +++ b/src/Material-Design-Lite-Components.package/WAHtmlCanvas.extension/instance/mdlCardTitle.st @@ -1,3 +1,4 @@ *Material-Design-Lite-Components mdlCardTitle - ^ self brush: MDLCardTitleContainer new \ No newline at end of file + self deprecated: 'Use #mdlCardTitleContainer instead.' transformWith: '`@receiver mdlCardTitle' -> '`@receiver mdlCardTitleContainer'. + ^ self mdlCardTitleContainer \ No newline at end of file diff --git a/src/Material-Design-Lite-Components.package/WAHtmlCanvas.extension/instance/mdlCardTitleContainer..st b/src/Material-Design-Lite-Components.package/WAHtmlCanvas.extension/instance/mdlCardTitleContainer..st new file mode 100644 index 00000000..b747497c --- /dev/null +++ b/src/Material-Design-Lite-Components.package/WAHtmlCanvas.extension/instance/mdlCardTitleContainer..st @@ -0,0 +1,5 @@ +*Material-Design-Lite-Components +mdlCardTitleContainer: aBlock + ^ self mdlCardTitleContainer + with: aBlock; + yourself \ No newline at end of file diff --git a/src/Material-Design-Lite-Components.package/WAHtmlCanvas.extension/instance/mdlCardTitleContainer.st b/src/Material-Design-Lite-Components.package/WAHtmlCanvas.extension/instance/mdlCardTitleContainer.st new file mode 100644 index 00000000..6f6b09d3 --- /dev/null +++ b/src/Material-Design-Lite-Components.package/WAHtmlCanvas.extension/instance/mdlCardTitleContainer.st @@ -0,0 +1,3 @@ +*Material-Design-Lite-Components +mdlCardTitleContainer + ^ self brush: MDLCardTitleContainer new \ No newline at end of file diff --git a/src/Material-Design-Lite-Demo.package/MDLCardsScreen.class/instance/renderDateCardOn..st b/src/Material-Design-Lite-Demo.package/MDLCardsScreen.class/instance/renderDateCardOn..st index f0439017..f877aff5 100644 --- a/src/Material-Design-Lite-Demo.package/MDLCardsScreen.class/instance/renderDateCardOn..st +++ b/src/Material-Design-Lite-Demo.package/MDLCardsScreen.class/instance/renderDateCardOn..st @@ -5,7 +5,7 @@ renderDateCardOn: html mdlTypographyTextLeft; style: 'width: 256px; height: 256px; background: #3E4EB8;'; with: [ - html mdlCardTitle + html mdlCardTitleContainer style: 'align-items: flex-start; color: #fff'; expand; with: [ html mdlCardTitleText diff --git a/src/Material-Design-Lite-Demo.package/MDLCardsScreen.class/instance/renderImageCardOn..st b/src/Material-Design-Lite-Demo.package/MDLCardsScreen.class/instance/renderImageCardOn..st index 30ba7ebf..02c133bb 100644 --- a/src/Material-Design-Lite-Demo.package/MDLCardsScreen.class/instance/renderImageCardOn..st +++ b/src/Material-Design-Lite-Demo.package/MDLCardsScreen.class/instance/renderImageCardOn..st @@ -5,7 +5,7 @@ renderImageCardOn: html mdlTypographyTextLeft; style: 'width: 256px; height: 256px; background: url(''' , (MDLDemoLibrary urlOf: #imagecardJpg) asString , ''') center / cover'; with: [ - html mdlCardTitle expand. + html mdlCardTitleContainer expand. html mdlCardActions style: 'height: 52px; padding: 16px; background: rgba(0,0,0,0.2)'; diff --git a/src/Material-Design-Lite-Demo.package/MDLCardsScreen.class/instance/renderSquareCardOn..st b/src/Material-Design-Lite-Demo.package/MDLCardsScreen.class/instance/renderSquareCardOn..st index 26018dca..0876edfd 100644 --- a/src/Material-Design-Lite-Demo.package/MDLCardsScreen.class/instance/renderSquareCardOn..st +++ b/src/Material-Design-Lite-Demo.package/MDLCardsScreen.class/instance/renderSquareCardOn..st @@ -5,7 +5,7 @@ renderSquareCardOn: html mdlTypographyTextLeft; style: 'width: 320px; height: 320px'; with: [ - html mdlCardTitle + html mdlCardTitleContainer expand; style: 'color: #fff;background: url(''' , (MDLDemoLibrary urlOf: #dogPng) asString , ''') bottom right 15% no-repeat #46B6AC;'; with: [ html mdlCardTitleText: 'Update' level: 2 ]. diff --git a/src/Material-Design-Lite-Demo.package/MDLCardsScreen.class/instance/renderWideCardOn..st b/src/Material-Design-Lite-Demo.package/MDLCardsScreen.class/instance/renderWideCardOn..st index 4db23d1e..4a96fb47 100644 --- a/src/Material-Design-Lite-Demo.package/MDLCardsScreen.class/instance/renderWideCardOn..st +++ b/src/Material-Design-Lite-Demo.package/MDLCardsScreen.class/instance/renderWideCardOn..st @@ -5,7 +5,7 @@ renderWideCardOn: html mdlTypographyTextLeft; style: 'width: 512px'; with: [ - html mdlCardTitle + html mdlCardTitleContainer style: 'height: 176px; background: url(''' , (MDLDemoLibrary urlOf: #welcomecardJpg) asString , ''') center / cover; color: #fff'; with: [ html mdlCardTitleText: 'Welcome' ]. diff --git a/src/Material-Design-Lite-Demo.package/monticello.meta/categories.st b/src/Material-Design-Lite-Demo.package/monticello.meta/categories.st index ce41da16..32585595 100644 --- a/src/Material-Design-Lite-Demo.package/monticello.meta/categories.st +++ b/src/Material-Design-Lite-Demo.package/monticello.meta/categories.st @@ -3,5 +3,5 @@ SystemOrganization addCategory: 'Material-Design-Lite-Demo-Components'! SystemOrganization addCategory: 'Material-Design-Lite-Demo-Core'! SystemOrganization addCategory: 'Material-Design-Lite-Demo-Extensions'! SystemOrganization addCategory: 'Material-Design-Lite-Demo-Utils'! -SystemOrganization addCategory: #'Material-Design-Lite-Demo-Widgets'! SystemOrganization addCategory: 'Material-Design-Lite-Demo-Widgets'! +SystemOrganization addCategory: #'Material-Design-Lite-Demo-Widgets'! diff --git a/src/Material-Design-Lite-Widgets.package/MDLCardTitle.class/instance/renderContentOn..st b/src/Material-Design-Lite-Widgets.package/MDLCardTitle.class/instance/renderContentOn..st index e3ae7fc8..3185fe7c 100644 --- a/src/Material-Design-Lite-Widgets.package/MDLCardTitle.class/instance/renderContentOn..st +++ b/src/Material-Design-Lite-Widgets.package/MDLCardTitle.class/instance/renderContentOn..st @@ -1,6 +1,6 @@ rendering renderContentOn: html | brush | - brush := html mdlCardTitle. + brush := html mdlCardTitleContainer. self addPropertiesToBrush: brush. brush with: [ html mdlCardTitleText: self title level: self level ] \ No newline at end of file diff --git a/src/Material-Design-Lite-Widgets.package/MDLSortableTable.class/instance/renderTableContentOn..st b/src/Material-Design-Lite-Widgets.package/MDLSortableTable.class/instance/renderTableContentOn..st index 1888ef0d..08c1a763 100644 --- a/src/Material-Design-Lite-Widgets.package/MDLSortableTable.class/instance/renderTableContentOn..st +++ b/src/Material-Design-Lite-Widgets.package/MDLSortableTable.class/instance/renderTableContentOn..st @@ -6,7 +6,7 @@ renderTableContentOn: html self ensureCurrentPageIsVisible. self title ifNotNil: [ - html mdlCardTitle + html mdlCardTitleContainer style: 'padding-left: 24px;'; with: [ html mdlCardTitleText: self title level: 2 ] ]. (selectable From d296122f464394c139bb42d0287e040a35ec329e Mon Sep 17 00:00:00 2001 From: CyrilFerlicot Date: Wed, 17 Oct 2018 23:51:20 +0200 Subject: [PATCH 4/8] Deprecate MDLMenuItem>>disable. Part of #144 --- .../MDLMenuItemTest.class/instance/testDisable.st | 3 --- .../MDLMenuItem.class/instance/disable.st | 1 + 2 files changed, 1 insertion(+), 3 deletions(-) delete mode 100644 src/Material-Design-Lite-Components-Tests.package/MDLMenuItemTest.class/instance/testDisable.st diff --git a/src/Material-Design-Lite-Components-Tests.package/MDLMenuItemTest.class/instance/testDisable.st b/src/Material-Design-Lite-Components-Tests.package/MDLMenuItemTest.class/instance/testDisable.st deleted file mode 100644 index 31ddf97b..00000000 --- a/src/Material-Design-Lite-Components-Tests.package/MDLMenuItemTest.class/instance/testDisable.st +++ /dev/null @@ -1,3 +0,0 @@ -tests -testDisable - self assert: [ :html | html mdlMenuItem disable ] generates: '
  • ' \ No newline at end of file diff --git a/src/Material-Design-Lite-Components.package/MDLMenuItem.class/instance/disable.st b/src/Material-Design-Lite-Components.package/MDLMenuItem.class/instance/disable.st index 63fb4834..b81a57d2 100644 --- a/src/Material-Design-Lite-Components.package/MDLMenuItem.class/instance/disable.st +++ b/src/Material-Design-Lite-Components.package/MDLMenuItem.class/instance/disable.st @@ -1,3 +1,4 @@ options disable + self deprecated: 'Use #disabled instead' transformWith: '`@receiver disable' -> '`@receiver disabled'. self disabled \ No newline at end of file From 6c0c3986b34d09a28de42fa62e982f00790d9033 Mon Sep 17 00:00:00 2001 From: CyrilFerlicot Date: Wed, 17 Oct 2018 23:58:24 +0200 Subject: [PATCH 5/8] Deprecate MDLGridSection Part of #170 --- .../MDLGridSection.class/class/isDeprecated.st | 5 +++++ .../WAHtmlCanvas.extension/instance/mdlGridSection..st | 1 + .../WAHtmlCanvas.extension/instance/mdlGridSection.st | 1 + 3 files changed, 7 insertions(+) create mode 100644 src/Material-Design-Lite-Components.package/MDLGridSection.class/class/isDeprecated.st diff --git a/src/Material-Design-Lite-Components.package/MDLGridSection.class/class/isDeprecated.st b/src/Material-Design-Lite-Components.package/MDLGridSection.class/class/isDeprecated.st new file mode 100644 index 00000000..7ec9af98 --- /dev/null +++ b/src/Material-Design-Lite-Components.package/MDLGridSection.class/class/isDeprecated.st @@ -0,0 +1,5 @@ +deprecation +isDeprecated + "Use #beGrid on a section brush." + + ^ true \ No newline at end of file diff --git a/src/Material-Design-Lite-Components.package/WAHtmlCanvas.extension/instance/mdlGridSection..st b/src/Material-Design-Lite-Components.package/WAHtmlCanvas.extension/instance/mdlGridSection..st index d0a52715..48899dce 100644 --- a/src/Material-Design-Lite-Components.package/WAHtmlCanvas.extension/instance/mdlGridSection..st +++ b/src/Material-Design-Lite-Components.package/WAHtmlCanvas.extension/instance/mdlGridSection..st @@ -1,5 +1,6 @@ *Material-Design-Lite-Components mdlGridSection: aBlock + self deprecated: 'Use #beGrid of a section brush'. ^ self mdlGridSection with: aBlock; yourself \ No newline at end of file diff --git a/src/Material-Design-Lite-Components.package/WAHtmlCanvas.extension/instance/mdlGridSection.st b/src/Material-Design-Lite-Components.package/WAHtmlCanvas.extension/instance/mdlGridSection.st index 84a7c3cb..2f90ac80 100644 --- a/src/Material-Design-Lite-Components.package/WAHtmlCanvas.extension/instance/mdlGridSection.st +++ b/src/Material-Design-Lite-Components.package/WAHtmlCanvas.extension/instance/mdlGridSection.st @@ -1,3 +1,4 @@ *Material-Design-Lite-Components mdlGridSection + self deprecated: 'Use #beGrid on a section brush'. ^ self brush: MDLGridSection new \ No newline at end of file From 51f60bdff663688a101a914f3976812ebb77a8d7 Mon Sep 17 00:00:00 2001 From: CyrilFerlicot Date: Wed, 17 Oct 2018 23:59:55 +0200 Subject: [PATCH 6/8] Deprecate MDLApplication>>applicationName Part of #179 --- .../MDLApplication.class/instance/applicationName..st | 1 + .../MDLApplication.class/instance/applicationName.st | 1 + 2 files changed, 2 insertions(+) diff --git a/src/Material-Design-Lite-Core.package/MDLApplication.class/instance/applicationName..st b/src/Material-Design-Lite-Core.package/MDLApplication.class/instance/applicationName..st index 77eccbf0..2c41f0df 100644 --- a/src/Material-Design-Lite-Core.package/MDLApplication.class/instance/applicationName..st +++ b/src/Material-Design-Lite-Core.package/MDLApplication.class/instance/applicationName..st @@ -1,3 +1,4 @@ accessing applicationName: aName + self deprecated: 'This is not used in MDL application. Please implement your own variable if you need this'. applicationName := aName \ No newline at end of file diff --git a/src/Material-Design-Lite-Core.package/MDLApplication.class/instance/applicationName.st b/src/Material-Design-Lite-Core.package/MDLApplication.class/instance/applicationName.st index b4007ecd..abde9d47 100644 --- a/src/Material-Design-Lite-Core.package/MDLApplication.class/instance/applicationName.st +++ b/src/Material-Design-Lite-Core.package/MDLApplication.class/instance/applicationName.st @@ -1,3 +1,4 @@ accessing applicationName + self deprecated: 'This is not used in MDL application. Please implement your own variable if you need this'. ^ applicationName \ No newline at end of file From b07e582c4036e2fdf7f812a007367cce8cf4fa74 Mon Sep 17 00:00:00 2001 From: CyrilFerlicot Date: Thu, 18 Oct 2018 00:04:55 +0200 Subject: [PATCH 7/8] Add changelog --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1fc496de..1edfb3e1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +# [v1.3.1](https://github.com/DuneSt/MaterialDesignLite/compare/v1.3.0...v1.3.1) (2018-10-18) + +* This release brings a lot of deprecation in prevision of the next major release. + # [v1.3.0](https://github.com/DuneSt/MaterialDesignLite/compare/v1.2.0...v1.3.0) (2018-10-07) ## Features From 2b5f942a45964451bf915a40cb111caed6b28333 Mon Sep 17 00:00:00 2001 From: CyrilFerlicot Date: Thu, 18 Oct 2018 00:06:24 +0200 Subject: [PATCH 8/8] Add version number for demo --- .../MDLDemo.class/class/version.st | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Material-Design-Lite-Demo.package/MDLDemo.class/class/version.st b/src/Material-Design-Lite-Demo.package/MDLDemo.class/class/version.st index 2ee6c130..20eeb8f9 100644 --- a/src/Material-Design-Lite-Demo.package/MDLDemo.class/class/version.st +++ b/src/Material-Design-Lite-Demo.package/MDLDemo.class/class/version.st @@ -1,3 +1,3 @@ versions version - ^ 'v1.3.0' \ No newline at end of file + ^ 'v1.3.1' \ No newline at end of file